<?php
$count = 5;
function get_count(){
    static $count;
    return $count++;
}
echo $count;
++$count;
echo PHP_EOL;
echo get_count();
echo PHP_EOL;
echo get_count();